package demo2;

public class Test {

    public static void func(IShape ishape){
        ishape.draw();
    }

    public static void main(String[] args) {
//        接口是不能被实例化的
//        IShape iShape = new IShape();
        IShape ishape1 = new Cycle();
        IShape ishape2 = new Rect();
        func(ishape1);
        func(ishape2);

    }
}
